<?php

namespace Biz\service\BrandRemind;

use Doraemon\cache\Queue;

class BrandMessage implements IObserver
{
    private $params = [];

    public function notify()
    {
        //echo "BrandMessage:".var_export($this->params,true).PHP_EOL;

        Queue::insertQueue(...$this->params);
    }

    public function setParam($aParam)
    {
        $this->params[0] = $aParam['controller'];
        $this->params[1] = $aParam['params'];
        $this->params[2] = $aParam['queueName'];
    }

    public function getParam()
    {
        return $this->params;
    }

}